package com.zhubayi.springcloud.alibaba.service;

import com.zhubayi.springcloud.entities.CommonResult;
import com.zhubayi.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhubayi
 */
@FeignClient(value = "nacos-payment-provider",fallback = PaymentFallbackService.class)
public interface IPaymentService {
    /**
     * 远程调用
     * @param id
     * @return
     */
    @GetMapping(value = "/paymentSQL/{id}")
   public CommonResult<Payment> paymentSQL(@PathVariable("id") Long id);
}
